<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head th:fragment="head(title)">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title th:replace="${title}">首页</title>
    <link rel="stylesheet" href="../../static/css/font-awesome.min.css" th:href="@{/css/font-awesome.min.css}">
    <link rel="apple-touch-icon-precomposed" href="../../static/images/icon/icon.png"
          th:href="@{/images/icon/icon.png}">
    <link rel="shortcut icon" href="../../static/images/icon/favicon.ico" th:href="@{/images/icon/favicon.ico}">
    <link rel="stylesheet" href="../../static/css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.css">
    <link rel="stylesheet" href="../../static/css/style.css" th:href="@{/css/style.css}">
    <link rel="stylesheet" href="../../static/css/me.css" th:href="@{/css/me.css}">
</head>
<body>

<header th:fragment="header">
    <nav class="navbar navbar-default navbar-fixed-top">
        <div class="container-fluid">
            <div class="navbar-header">
                <a class="navbar-brand" href="#">朝夕会 MIS</a></div>
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav navbar-right">
                    <li><a href="#">欢迎您，网站管理员！</a></li>
                    <li><a href="/login" onClick="if(!confirm('是否确认退出？'))return false;">退出登录</a></li>
                </ul>
            </div>
        </div>
    </nav>
</header>

<!--导航-->
<nav th:fragment="menu(n)">
    <aside class="col-sm-3 col-md-2 col-lg-2 sidebar">
        <ul class="nav nav-sidebar">
            <li><a href="#" class="" th:href="@{/admin/index}" th:classappend="${n==1} ? 'col': ''">首页</a></li>
            <li><a href="#" class="" th:href="@{/admin/admin_lead}" th:classappend="${n==2} ? 'col': ''">负责人审核</a></li>
            <li><a href="#" class="" th:href="@{/admin/admin_activity}" th:classappend="${n==3} ? 'col': ''">活动审核</a>
            </li>
            <li><a href="#" class="" th:href="@{/admin/suggest}" th:classappend="${n==4} ? 'col': ''">意见箱</a></li>
            <li><a data-toggle="tooltip" data-placement="top" title="网站暂无此功能">用户分布</a></li>
            <li><a data-toggle="tooltip" data-placement="top" title="网站暂无此功能">待拓展...</a></li>
            <li><a class="dropdown-toggle" id="userMenu" data-toggle="dropdown" aria-haspopup="true"
                   aria-expanded="false" th:classappend="${n==6||n==7} ? 'col': ''">管理</a>
                <ul class="dropdown-menu" aria-labelledby="userMenu">
                    <li><a data-toggle="tooltip" data-placement="top" title="网站暂无此功能">负责人管理</a>
                    <li><a data-toggle="tooltip" data-placement="top" title="网站暂无此功能">用户管理</a>
                    <li role="separator" class="divider"></li>
                </ul>
            </li>
        </ul>
    </aside>

</nav>

</body>
</html>